package com.market.goods.dao.po;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.*;

/**
优惠规则
 */
@Table(name = "activity_rule")
public class ActivityRulePO implements Serializable {
    /**
     * 编号
     */
    private Integer id;

    /**
     * 活动id
     */
    @Column(name = "activity_id")
    private Integer activityId;

    /**
     * 满减金额
     */
    @Column(name = "condition_amount")
    private BigDecimal conditionAmount;

    /**
     * 满减件数
     */
    @Column(name = "condition_num")
    private Long conditionNum;

    /**
     * 优惠金额
     */
    @Column(name = "benefit_amount")
    private BigDecimal benefitAmount;

    /**
     * 优惠折扣
     */
    @Column(name = "benefit_discount")
    private Long benefitDiscount;

    /**
     * 优惠级别
     */
    @Column(name = "benefit_level")
    private Long benefitLevel;

    private static final long serialVersionUID = 1L;

    /**
     * ��ȡ���
     *
     * @return id - ���
     */
    public Integer getId() {
        return id;
    }

    /**
     * ���ñ��
     *
     * @param id ���
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * ��ȡ����
     *
     * @return activity_id - ����
     */
    public Integer getActivityId() {
        return activityId;
    }

    /**
     * ��������
     *
     * @param activityId ����
     */
    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    /**
     * ��ȡ�������
     *
     * @return condition_amount - �������
     */
    public BigDecimal getConditionAmount() {
        return conditionAmount;
    }

    /**
     * �����������
     *
     * @param conditionAmount �������
     */
    public void setConditionAmount(BigDecimal conditionAmount) {
        this.conditionAmount = conditionAmount;
    }

    /**
     * ��ȡ��������
     *
     * @return condition_num - ��������
     */
    public Long getConditionNum() {
        return conditionNum;
    }

    /**
     * ������������
     *
     * @param conditionNum ��������
     */
    public void setConditionNum(Long conditionNum) {
        this.conditionNum = conditionNum;
    }

    /**
     * ��ȡ�Żݽ��
     *
     * @return benefit_amount - �Żݽ��
     */
    public BigDecimal getBenefitAmount() {
        return benefitAmount;
    }

    /**
     * �����Żݽ��
     *
     * @param benefitAmount �Żݽ��
     */
    public void setBenefitAmount(BigDecimal benefitAmount) {
        this.benefitAmount = benefitAmount;
    }

    /**
     * ��ȡ�Ż��ۿ�
     *
     * @return benefit_discount - �Ż��ۿ�
     */
    public Long getBenefitDiscount() {
        return benefitDiscount;
    }

    /**
     * �����Ż��ۿ�
     *
     * @param benefitDiscount �Ż��ۿ�
     */
    public void setBenefitDiscount(Long benefitDiscount) {
        this.benefitDiscount = benefitDiscount;
    }

    /**
     * ��ȡ�Żݼ���
     *
     * @return benefit_level - �Żݼ���
     */
    public Long getBenefitLevel() {
        return benefitLevel;
    }

    /**
     * �����Żݼ���
     *
     * @param benefitLevel �Żݼ���
     */
    public void setBenefitLevel(Long benefitLevel) {
        this.benefitLevel = benefitLevel;
    }
}